from qcloud_cos import CosConfig
from qcloud_cos import CosS3Client

secret_id = 'AKIDmIXtPx9OOL3UfaMWXSEl0zoMdCZgZR5T'  # 替换为用户的 secretId
secret_key = 'GFCuSjmaKo1xbS9ZibEjUjjS7Wf7JUVG'  # 替换为用户的 secretKey
region = 'ap-chengdu'  # 替换为用户的 Region，区域：中国成都，相当于ap-chengdu

config = CosConfig(Region=region, SecretId=secret_id, SecretKey=secret_key)
# 2. 获取客户端对象
client = CosS3Client(config)

#  删除文件

client.delete_object(
    Bucket='zhao-1304881545',
    Key='p1.png',
)


